package com.kx.demo.jdk.collection;

import com.kx.demo.concurrent.MyQueue;

import java.util.HashMap;
import java.util.Map;

/**
 * @author kx
 * @date 2020/4/11
 */
public class HashMapDemo {

    public static void main(String[] args) {
        HashMap<Integer, String> map = new HashMap<>();

        map.put(1, "hello");
        map.put(null, "hello");
        System.out.println(map.entrySet());
        for (Integer integer : map.keySet()) {

        }

        for (Map.Entry<Integer, String> integerStringEntry : map.entrySet()) {

        }
    }

}
